﻿using System;
using System.Collections.Generic;
using System.Text;
using IHotelDal;
using Model;
using IHodelBll;

namespace HodelBll
{
    public class RecreationsBLL : IRecreationsBlls
    {
        IRecreationsDALs _dal;
        /// <summary>
        /// 构造函数注入
        /// </summary>
        /// <param name="dal"></param>
        public RecreationsBLL(IRecreationsDALs dal)
        {
            _dal = dal;
        }
        /// <summary>
        /// 显示娱乐表
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public List<Recreation> RecreationShow()
        {
            return _dal.RecreationShow();

        }
        /// <summary>
        /// 显示项目娱乐表
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public List<Amusement> AmusementShow()
        {
            return _dal.AmusementShow();

        }
        /// <summary>
        /// 添加娱乐信息
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int AddAmusement(Amusement m)
        {
            return _dal.AddAmusement(m);
        }
        public int AddRecren(Recreationlist m)
        {
            return _dal.AddRecren(m);
        }
        /// <summary>
        /// 删除项目
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int Del(int id)
        {
            return _dal.Del(id);
        }
        /// <summary>
        /// 获取id反填信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Recreationlist Find(int id)
        {
            return _dal.Find(id);
        }
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        public int UptRecreation(Recreationlist m)
        {
            return _dal.UptRecreation(m);
        }
        /// <summary>
        /// 删除娱乐项目
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int Delam(int id)
        {
            return _dal.Delam(id);
        }
    }
}
